package com.juyu.miliao.api.service;

import com.alibaba.fastjson.JSONObject;
import com.juyu.miliao.api.dao.redis.UserRedisDao;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @Auther: 卜加超
 * @Date: 2019/4/25 13:53
 * @Description:
 */
@Service
public class AdvertisementService {
    @Resource
    private UserRedisDao userRedisDao;
    public JSONObject getAdvertisementSwitch() {
       String advertisement = userRedisDao.getAdvertisement();
       JSONObject jsonObject =JSONObject.parseObject(advertisement);
       return jsonObject;
    }
}
